package com.datapermission.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.datapermission.annotation.Permission;
import com.datapermission.domain.Product;
import com.datapermission.service.ProductService;
import com.datapermission.mapper.ProductMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【product】的数据库操作Service实现
* @createDate 2024-09-22 15:30:36
*/
@Slf4j
@Service
public class MybatisProductServiceImpl extends ServiceImpl<ProductMapper, Product>
    implements ProductService{

    @Override
    @Permission(tableName = "product")
    public List<Product> selectProductList() {
        log.info("mybatis自动生成的SQL");
        return list();
    }
}




